.class Lcom/evernote/client/android/EvernoteOAuthActivity$4;
.super Ljava/lang/Object;
.source "EvernoteOAuthActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/evernote/client/android/EvernoteOAuthActivity;->initWidgetsActions()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/evernote/client/android/EvernoteOAuthActivity;


# direct methods
.method constructor <init>(Lcom/evernote/client/android/EvernoteOAuthActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/evernote/client/android/EvernoteOAuthActivity;

    .prologue
    .line 189
    iput-object p1, p0, Lcom/evernote/client/android/EvernoteOAuthActivity$4;->this$0:Lcom/evernote/client/android/EvernoteOAuthActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .registers 6
    .param p1, "v"    # Landroid/view/View;

    .prologue
    const/4 v3, 0x0

    .line 193
    iget-object v0, p0, Lcom/evernote/client/android/EvernoteOAuthActivity$4;->this$0:Lcom/evernote/client/android/EvernoteOAuthActivity;

    # getter for: Lcom/evernote/client/android/EvernoteOAuthActivity;->mBeginAuthSyncTask:Landroid/os/AsyncTask;
    invoke-static {v0}, Lcom/evernote/client/android/EvernoteOAuthActivity;->access$500(Lcom/evernote/client/android/EvernoteOAuthActivity;)Landroid/os/AsyncTask;

    move-result-object v0

    if-eqz v0, :cond_17

    iget-object v0, p0, Lcom/evernote/client/android/EvernoteOAuthActivity$4;->this$0:Lcom/evernote/client/android/EvernoteOAuthActivity;

    # getter for: Lcom/evernote/client/android/EvernoteOAuthActivity;->mBeginAuthSyncTask:Landroid/os/AsyncTask;
    invoke-static {v0}, Lcom/evernote/client/android/EvernoteOAuthActivity;->access$500(Lcom/evernote/client/android/EvernoteOAuthActivity;)Landroid/os/AsyncTask;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/AsyncTask;->getStatus()Landroid/os/AsyncTask$Status;

    move-result-object v0

    sget-object v1, Landroid/os/AsyncTask$Status;->RUNNING:Landroid/os/AsyncTask$Status;

    if-eq v0, v1, :cond_5c

    :cond_17
    iget-object v0, p0, Lcom/evernote/client/android/EvernoteOAuthActivity$4;->this$0:Lcom/evernote/client/android/EvernoteOAuthActivity;

    .line 194
    # getter for: Lcom/evernote/client/android/EvernoteOAuthActivity;->mSelectedBootstrapProfile:Lcom/evernote/edam/userstore/BootstrapProfile;
    invoke-static {v0}, Lcom/evernote/client/android/EvernoteOAuthActivity;->access$600(Lcom/evernote/client/android/EvernoteOAuthActivity;)Lcom/evernote/edam/userstore/BootstrapProfile;

    move-result-object v0

    if-eqz v0, :cond_5c

    iget-object v0, p0, Lcom/evernote/client/android/EvernoteOAuthActivity$4;->this$0:Lcom/evernote/client/android/EvernoteOAuthActivity;

    # getter for: Lcom/evernote/client/android/EvernoteOAuthActivity;->mBootstrapProfiles:Ljava/util/ArrayList;
    invoke-static {v0}, Lcom/evernote/client/android/EvernoteOAuthActivity;->access$700(Lcom/evernote/client/android/EvernoteOAuthActivity;)Ljava/util/ArrayList;

    move-result-object v0

    if-eqz v0, :cond_5c

    .line 196
    iget-object v0, p0, Lcom/evernote/client/android/EvernoteOAuthActivity$4;->this$0:Lcom/evernote/client/android/EvernoteOAuthActivity;

    iget-object v1, p0, Lcom/evernote/client/android/EvernoteOAuthActivity$4;->this$0:Lcom/evernote/client/android/EvernoteOAuthActivity;

    # getter for: Lcom/evernote/client/android/EvernoteOAuthActivity;->mSelectedBootstrapProfilePos:I
    invoke-static {v1}, Lcom/evernote/client/android/EvernoteOAuthActivity;->access$800(Lcom/evernote/client/android/EvernoteOAuthActivity;)I

    move-result v1

    add-int/lit8 v1, v1, 0x1

    iget-object v2, p0, Lcom/evernote/client/android/EvernoteOAuthActivity$4;->this$0:Lcom/evernote/client/android/EvernoteOAuthActivity;

    # getter for: Lcom/evernote/client/android/EvernoteOAuthActivity;->mBootstrapProfiles:Ljava/util/ArrayList;
    invoke-static {v2}, Lcom/evernote/client/android/EvernoteOAuthActivity;->access$700(Lcom/evernote/client/android/EvernoteOAuthActivity;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    rem-int/2addr v1, v2

    # setter for: Lcom/evernote/client/android/EvernoteOAuthActivity;->mSelectedBootstrapProfilePos:I
    invoke-static {v0, v1}, Lcom/evernote/client/android/EvernoteOAuthActivity;->access$802(Lcom/evernote/client/android/EvernoteOAuthActivity;I)I

    .line 197
    iget-object v0, p0, Lcom/evernote/client/android/EvernoteOAuthActivity$4;->this$0:Lcom/evernote/client/android/EvernoteOAuthActivity;

    # setter for: Lcom/evernote/client/android/EvernoteOAuthActivity;->mBootstrapProfiles:Ljava/util/ArrayList;
    invoke-static {v0, v3}, Lcom/evernote/client/android/EvernoteOAuthActivity;->access$702(Lcom/evernote/client/android/EvernoteOAuthActivity;Ljava/util/ArrayList;)Ljava/util/ArrayList;

    .line 198
    iget-object v0, p0, Lcom/evernote/client/android/EvernoteOAuthActivity$4;->this$0:Lcom/evernote/client/android/EvernoteOAuthActivity;

    # setter for: Lcom/evernote/client/android/EvernoteOAuthActivity;->mSelectedBootstrapProfile:Lcom/evernote/edam/userstore/BootstrapProfile;
    invoke-static {v0, v3}, Lcom/evernote/client/android/EvernoteOAuthActivity;->access$602(Lcom/evernote/client/android/EvernoteOAuthActivity;Lcom/evernote/edam/userstore/BootstrapProfile;)Lcom/evernote/edam/userstore/BootstrapProfile;

    .line 200
    iget-object v0, p0, Lcom/evernote/client/android/EvernoteOAuthActivity$4;->this$0:Lcom/evernote/client/android/EvernoteOAuthActivity;

    new-instance v1, Lcom/evernote/client/android/EvernoteOAuthActivity$BootstrapAsyncTask;

    iget-object v2, p0, Lcom/evernote/client/android/EvernoteOAuthActivity$4;->this$0:Lcom/evernote/client/android/EvernoteOAuthActivity;

    invoke-direct {v1, v2, v3}, Lcom/evernote/client/android/EvernoteOAuthActivity$BootstrapAsyncTask;-><init>(Lcom/evernote/client/android/EvernoteOAuthActivity;Lcom/evernote/client/android/EvernoteOAuthActivity$1;)V

    const/4 v2, 0x0

    new-array v2, v2, [Ljava/lang/Void;

    invoke-virtual {v1, v2}, Lcom/evernote/client/android/EvernoteOAuthActivity$BootstrapAsyncTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    move-result-object v1

    # setter for: Lcom/evernote/client/android/EvernoteOAuthActivity;->mBeginAuthSyncTask:Landroid/os/AsyncTask;
    invoke-static {v0, v1}, Lcom/evernote/client/android/EvernoteOAuthActivity;->access$502(Lcom/evernote/client/android/EvernoteOAuthActivity;Landroid/os/AsyncTask;)Landroid/os/AsyncTask;

    .line 203
    :cond_5c
    return-void
.end method
